<div class="col-md-3 <?php
if ($good['is_stock']) {
    echo 'goods_item_no_stock';
}
?>">
    <div class="thumbnail" id="<?php echo $good['goods_id']; ?>" >
        <?php
		//是否售完
		if($good['is_stock']){
		?>
        <img class="good_img" src="<?php echo $good['product_img']; ?>" alt="<?php echo $good['goods_name']; ?>"  title="<?php echo $good['goods_name']; ?>">
        <?php
		}else{
		?>
        <a href="<?php echo Yii::app()->request->hostInfo.Yii::app()->createUrl('/front/good/show', array('gid' => $good['goods_id'])); ?>" target="_blank" class="good_url" title="<?php echo $good['goods_name']; ?>">
            <img class="good_img" src="<?php echo $good['product_img']; ?>" alt="<?php echo $good['goods_name']; ?>"  title="<?php echo $good['goods_name']; ?>">
        </a>
        <?php
		}
		?>
        <div class="caption">
            <div class="item-title">
                <i class="front-spt"></i>
                <span class="good_desc"><?php echo $good['goods_name']; ?></span>
                <?php if(!empty($good['is_format'])) :?>
                    <img class="is_format" onmouseover="$(this).next().css('display', 'block');" onmouseout="$(this).next().css('display', 'none');" alt="多规格" src="<?php echo Yii::app()->theme->baseUrl; ?>/assets/images/mutisf.png">
				<?php endif;?>
				<div class="multiple" style="display: none;">多规格</div>
            </div>
            <div class="information">
            	<div class="pull-left"><span class="price_red">&#165</span><span class="promo_price"><?php echo $good['promo_price']; ?></span></div>
            	<div class="pull-left">
            		<div class="pull-left zhekou"><?php echo number_format($good['promo_price'] / $good['p_price'] * 10, 1);?> 折</div>
            		<div class="pull-left" style="width:15px;height:18px;"></div>
            		<div class="origin-price">&#165 <?php echo $good['p_price']?></div>
            	</div>
            <!--
                <div class="pull-left price font-arial">
                    <i class="front-spt"></i><?php echo $good['promo_price']; ?>
                </div>
			-->
                <?php
				if($good['is_stock']){
				?>
                <a class="btn-purchase front-spt mutisf <?php if($good['item_type']==1){ echo 'tmall'; } ?><?php if($good['item_type']==11){ echo 'jd'; } ?>"  title="<?php echo $good['goods_name']; ?>"></a>
                <?php
				}else{
				?>
                <a class="btn-purchase front-spt mutisf <?php if($good['item_type']==1){ echo 'tmall'; } ?><?php if($good['item_type']==11){ echo 'jd'; } ?><?php if($good['is_format']==1){echo 'mutisf'; } ?>" href="<?php echo $good['good_url']; ?>" target="_blank"  title="<?php echo $good['goods_name']; ?>"></a>
                <?php
				}
				?>
                <Div class="clearfix"></Div>
            </div>

            <div class="ts-col">
                <div class="pull-left time">
<?php echo $good['timer_str']; ?>
                </div>
                <div class="pull-right sales">
<?php echo $good['sales_str']; ?>
                </div>
                <Div class="clearfix"></Div>
            </div>
            <div class="share-box">
                <div class="share">
                    <div class="title pull-left">分享到：</div>
                    <div class="bdsharebuttonbox pull-left" data-tag="share_2" data-text="sh2" id="share_2">
                        <!--
                        <a class="bds_weixin" data-cmd="weixin"></a>
                        <a class="bds_sqq" data-cmd="sqq"></a>
                        <a class="bds_tsina" data-cmd="tsina"></a>
                        <a class="bds_qzone" data-cmd="qzone" href="#"></a>
                        <a class="bds_more" data-cmd="more"></a>
                        -->
                        <a class="share_weixin share_icon" target="_blank" data-cmd="weixin"></a>
						<a class="share_sqq share_icon" target="_blank" data-cmd="sqq"></a>
						<a class="share_tsina share_icon" target="_blank" data-cmd="tsina"></a>
						<a class="share_qzone share_icon" target="_blank" data-cmd="qzone" href="#"></a>
                    </div>
                    <div class="pull-right" >
                    	<a class="report_a" href="javascript::void(0);" onclick="window.open($(this).attr('data-url'));" data-url="<?php echo Yii::app()->createUrl('/front/punish/index', array('good_id' => $good['goods_id'])); ?>">
                    		[举报]
                    	</a>
                    </div>
                    <div class="clearfix"></div>
                </div>
            </div>
        </div>
    </div>
    <?php
	//是否售完
	if($good['is_stock']){
	?>
    <a class="no_stock_icon" title="<?php echo $good['goods_name']; ?>"></a>
    <?php
	}else{
	?>
    <a class="no_stock_icon" href="<?php echo Yii::app()->request->hostInfo.Yii::app()->createUrl('/front/good/show', array('gid' => $good['goods_id'])); ?>" target="_blank"  title="<?php echo $good['goods_name']; ?>"></a>
    <?php
	}
	?>
</div>